package com.sg.dto.biz.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffUsersDto
 * @使用场景
 */
@Data
public class BffUsersDto extends PagedDto implements Serializable {

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 个人账号
     */
    @ApiModelProperty("个人账号")
    private String userId;

    /**
     * 绑定手机
     */
    @ApiModelProperty("绑定手机")
    private String phone;

    /**
     * 手机激活状态 TRUE:是 FALSE:否
     */
    @ApiModelProperty("手机激活状态")
    private String passByPhone;

    /**
     * 注册时间
     */
    @ApiModelProperty("注册时间")
    private Date regTime;

    /**
     * 是否失效 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否失效")
    private String isInvalid;
    /**
     * 最后登录时间
     */
    @ApiModelProperty("最后登录时间")
    private Date lastLoginTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffUsersDto that = (BffUsersDto) o;
        return userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && userId == that.userId && phone == that.phone && passByPhone == that.passByPhone && regTime == that.regTime && isInvalid == that.isInvalid && lastLoginTime == that.lastLoginTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), userFace, idCardName, nickName, userId, phone, passByPhone, regTime, isInvalid, lastLoginTime);
    }


}
   